package AC;

import java.util.Arrays;
import java.util.Scanner;

public class Zuoye1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("输入作业名");
        String zuoye = in.next();
        if (zuoye.endsWith(".zip") || zuoye.endsWith(".rar")) {
            System.out.println("对");
        } else System.out.println("错");
        System.out.println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
        System.out.println("(限制中文名版本)输入作业名");
        String newzuo = in.next();
        byte[] a = newzuo.getBytes();
        boolean b = true;
        for (int i = 0; i < a.length; i++) {
            if (a[i] > 0) {
                b = false;
                break;
            }
        }
        if (newzuo.endsWith(".zip") || newzuo.endsWith(".rar")) {
            if (b) {
                System.out.println("正确");
            } else System.out.println("不正确");
        }
    }
}
